package cn.yfj.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    private Integer currentPage = 1;//初始页数
    private Integer pageSize = 10;//初始每页数据多少
    //关键字高级查询
    private String keyword;

    //写一个算页码的函数
    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}
